import matplotlib.pyplot as plt
import numpy as np


a = np.linspace(0, 9, 10)
b = np.ones(3)

c = np.convolve(a, b, 'full')
c = c[len(b)-1:len(c) + 1 - len(b)]
print(a)
print(b)
print(c)